package com.zc58s.cyclicbarrier;

import java.util.concurrent.locks.LockSupport;
import java.util.concurrent.locks.ReentrantLock;

/**
 * @author : fjc.dane@gmail.com
 * @createtime : 2021/12/15
 */

public class Test {
    private static final ReentrantLock lock = new ReentrantLock();

    public static void main(String[] args) throws InterruptedException {
        try {
            lock.lock();
            Thread.sleep(1000);
            LockSupport.park();
        } finally {
            System.out.println("pack之后，还能执行");
        }

    }
}
